#ifndef __COMMON_DEF_H__
#define __COMMON_DEF_H__

#define FLOOR2(x)        (floor(x * 100) / 100)       //get the floor data to the second digit after dot
#define ROUND2(x)        (floor(x*100 + 0.5)/100)     //round the data to the second digit after dot
#define IN_RANGE(i,x,Y)  ((i>x) && (i<=Y))            //if i is in (x, Y], return true

#endif